(set #needInst43 "You must use Installer version 43 or greater.")
(set srcdir (pathonly @icon))
(if (< (/ @installer-version 65536) 43)
(abort #needInst43)
)
(complete 10)
(set askfor "\nSelect a Drawer to install Clipper 5.0\nNo drawer will be Created.\n\nThis should be in your path, eg. C:")
(set dst (copyfiles
(source "Clipper")
(dest "C:")
(prompt "Install Clipper to \"C:\" ?")
(help "")
(confirm)
(infos)
)
)
(complete 20)
(set lang
(askoptions
(prompt "Select Language catalogs to install\nEnglish is Built in.\n\nPlease note that the catalogs are not yet finished")
(help @askchoice-help)
(choices "Deutsch" "français")
(default 0)
)
)
(set path (pathonly @icon))
(if (or (= lang 1) (= lang 3))
(
(set cata (tackon path "catalogs/deutsch/"))
(copyfiles
(source cata)
(dest "LOCALE:Catalogs/deutsch/")
(all)
)
)
)
(if (or (= lang 2) (= lang 3))
(
(set cata (tackon path "catalogs/français/"))
(copyfiles
(source cata)
(dest "LOCALE:Catalogs/français/")
(all)
)
)
)
(complete 50)
(if (askbool
(prompt "\nIf you use AmIRC i can install a Script\nto call Clipper from AmIRCs Menus.\n()_\\\n() /")
(help "Installs a Script called Clipper.amirx into the AmIRC/Rexx drawer. you can then call Clipper from AmIRCs Menus\n\nYou must Click your way to the AmIRC main drawer (not the Rexx dir)")
(prompt "\nI need to know where AmIRC is.\nSelect AmIRC Drawer (Not the \"Rexx\" Dir)")
(help "Installs a Script called Clipper.amirx into the AmIRC/Rexx drawer. you can then call Clipper from AmIRCs Menus\n\nYou must Click your way to the AmIRC main drawer(not the Rexx dir)")
(default defdest)
)
)
(set adst (tackon amd "Rexx"))
(if (NOT (exists adst))
(abort "could not find "adst"\n\nI need the AmIRC Main Drawer")
)
(complete 70)
(copyfiles
(source "Clipper.amirx")
(dest adst)
(prompt "Install Clipper.amirx to "adst" ?")
(help "")
(confirm)
(infos)
)
(complete 80)
(set cprefs "S:ClipPrefs")
(if (NOT (exists cprefs))
(makedir cprefs
(prompt "\n\nIs it OK to make a new prefs dir\ncalled "cprefs" ?\n\nthis can be you home for many prefs files :^)")
(prompt "\nRename S:ClipperIRC.cfg to \"S:ClipPrefs/ClipperIRC.cfg\" ?")
(help "")
(confirm)
)
(copyfiles
(source "ClipperIRC.cfg")
(dest cprefs)
(prompt "Install ClipperIRC.cfg to \"S:ClipPrefs/\" ?")
(help "")
(confirm)
(infos)
)
)
)
)
(complete 90)
(copyfiles
(source "Docs/English/Clipper.guide")
(dest "HELP:English/")
(prompt "\nInstall Clipper.guide to HELP:English/ ?\nPress \"Help...\" for info")
(help "\nThis enables the help key to be pressed in a Clipper window to load the Guide relevant to the programs position\n\nThe order Clipper searches for the Guide is..\n 1st: help:English/\n 2nd: help:\nlast: ProgDir:"
"\n\nIf not found in any of these the Help Key will not work.")
(confirm)
(infos)
)
(complete 99)
(set @default-dest (expandpath dst))
(complete 100)
(exit "\n\n" @app-name " Installaton is now over.\n")